package com.xuecheng.content.model.dto;

import com.xuecheng.base.exception.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author: Hes
 * @description 修改课程信息Dto
 * @date: 2023/6/20 17:58
 */
@Data
@ApiModel("修改课程信息模型")
public class EditCourseDto extends AddCourseDto {
    @ApiModelProperty(value = "课程id", required = true)
    @NotNull(groups = {ValidationGroups.Update.class}, message = "课程id不能为空")
    private Long id;
}
